package com.boliq.lol.adapter;

import com.boliq.lol.R;
import com.boliq.lol.bean.NewsChessBean1;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class NewsChessAdapter1 extends BaseQuickAdapter<NewsChessBean1, BaseViewHolder> {
    public NewsChessAdapter1() {
        super(R.layout.fragment_news_chess1);
    }
    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, NewsChessBean1 newsChessBean1) {
        baseViewHolder.setImageResource(R.id.chess_img1,newsChessBean1.getImag());
        baseViewHolder.setText(R.id.chess_text1,newsChessBean1.getTag());
        baseViewHolder.setImageResource(R.id.chess_img2,newsChessBean1.getPlay());
        baseViewHolder.setText(R.id.chess_text2,newsChessBean1.getId());
    }
}
